﻿namespace CatClient.Message.Spi.Heartbeat.Extend.Netstat
{
    using System;
    using System.ComponentModel;
    using System.Net;
    using System.Runtime.CompilerServices;
    using System.Runtime.InteropServices;

    [StructLayout(LayoutKind.Sequential)]
    public class UdpProcessRecord
    {
        [DisplayName("Local Address")]
        public IPAddress LocalAddress { get; set; }
        [DisplayName("Local Port")]
        public uint LocalPort { get; set; }
        [DisplayName("Process ID")]
        public int ProcessId { get; set; }
        public UdpProcessRecord(IPAddress localAddress, uint localPort, int pId)
        {
            this.LocalAddress = localAddress;
            this.LocalPort = localPort;
            this.ProcessId = pId;
        }
    }
}

